import {
    GETMOVIELIST
} from '../constant/movieConst'
const init = {
    movieList:[]
}
export default function countReducer(prevStata=init,action){
    const {
        type,
        data
    } = action;
    switch (type){
        case GETMOVIELIST:
            return {
                ...prevStata,
                movieList: data
            }
    }
    return prevStata;
}